package com.example.zjsr.dao;

import com.example.zjsr.domain.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InfoDao {
    List<Anchors> getAnchors(@Param("keyword") String keyword);

    List<AnchorsInfo> getAnchorsInfo(@Param("anchorID") String anchorID);

    List<Fruit> getFruit(@Param("keyword") String keyword);

    List<FruitInfo> getFruitInfo(@Param("fruitId") Integer fruitId);

    List<FruitInfo> getFruitInfoEmpty(@Param("fruitId")Integer fruitId);

    Fruit getFruitChart(@Param("fruitId") Integer fruitId);

    List<FruitInfo> getInventory(@Param("fruitId") Integer fruitId);

    List<ProvinceMap> getProvinceMap(@Param("fruitId") Integer fruitId);

    List<FruitInfo> getSales(@Param("fruitId") Integer fruitId);

    List<FruitInfo> getLowSales(@Param("fruitId") Integer fruitId);

    List<FruitInfo> getFavorableRate(@Param("fruitId") Integer fruitId);

    String getFruitPicture(@Param("fruitId") Integer fruitId);

    List<AnchorsInfo> getAnchorsCharts(@Param("anchorID") String anchorID);

    List<TimeResult> getBeginDate(@Param("anchorID")String anchorID);

    List<TimeResult> getEndDate(@Param("anchorID")String anchorID);


    List<TimeResult> getSexFruitInfo(@Param("fruitId") Integer fruitId);

    List<TimeResult> getAgeFruitInfo(@Param("fruitId")Integer fruitId);

    List<FruitInfo> getCharacterFruitInfo(@Param("fruitId")Integer fruitId);
}
